package com.biz.primus.ms.promotion.dao.ro;

import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import lombok.Getter;
import lombok.Setter;

/**
 * 秒杀商品Ro ID: 秒杀活动ID + 商品ID
 *
 * @author david-liu
 */
@Getter
@Setter
@Ro(key = "pmt:seckill:prd")
@RoSortedSet(key = "list", score = "createTimestamp")
public class SeckillProductRo extends BaseRedisObject<String> {
    private static final long serialVersionUID = -511091476191909387L;

    /**
     * 秒杀活动ID
     */
    private String seckillPromotionId;

    /**
     * 参与秒杀商品的ID
     */
    private Long productId;

    /**
     * 秒杀商品总量
     */
    private Integer seckillQuantity;

    /**
     * 秒杀商品剩余总量
     */
    private Integer remainQuantity;

    /**
     * 限购数量
     */
    private Integer purchaseLimit;

    /**
     * 秒杀价
     */
    private Integer seckillPrice;
}
